<div class="uk-layui-form">
	<form class="layui-form layui-form-pane" action="/apps/xiaoe/words/update.html" method="post">
		<#if type??><input type="hidden" name="type" value="${type!''}"></#if>
		<#if word??><input type="hidden" name="oldword" value="<#if oldword??>${(oldword!'')?url}<#else>${(word!'')?url}</#if>"></#if>
		<div class="layui-form-item" style="padding:20px;">
			<div class="layui-inline">
				<label class="layui-form-label">关键词：</label>
				<div class="layui-input-inline" style="width: 299px;">
					<input type="text" name="word" value="${word!''}" autocomplete="off" class="layui-input" required="required" lay-verify="required" maxlength="255">
				</div>
			</div>
			<div class="layui-inline">
				<label style="color:red;">* 必填项</label>
			</div>
		</div>

		<div class="layui-form-button">
			<div class="layui-button-block">
				<button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
	</form>
</div>

<script>
	layui.use('element', function(){
		var element = layui.element;
	});
	layui.use('form', function() {
		var form = layui.form;
		form.render(); //更新全部
	});
</script>